<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload = function () {
            var deleteA = document.getElementById("deleteA");
            deleteA.onclick = function () {
                if(!confirm("您确认删除吗？")){
                    return false;//取消默认行为
                }
            }
        };
    </script>
</head>
<body>

<a id="deleteA" href="delete_success.html">删除</a>

</body>
</html>